<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OnClickModAlert.aspx.cs" Inherits="ModAlert_OnClickModAlert"
	Title="OnClickModAlert - ModWatch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageContent" Runat="Server">

	<h2>OnClickModAlertExtender Control</h2>

	<p>
		The OnClickModAlertExtender control checks for changes
		when the user clicks a control, such as a Button or HyperLink.
	</p>
	
	<p>
		&lt;asp:Button Text="Fire ModAlert Button" ID="btnTest" runat="server" />
		<br />
		&lt;mw:OnClickModAlertExtender TargetControlID="btnTest" runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />
		
		&lt;asp:LinkButton Text="Fire ModAlert Button" ID="btnTest" runat="server" />
		<br />
		&lt;mw:OnClickModAlertExtender TargetControlID="btnTest" runat="server"
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />

		&lt;asp:HyperLink NavigateUrl="OnClickModAlert.aspx" ID="hplTest" runat="server">
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		Fire ModAlert HyperLink
		<br />
		&lt;/asp:HyperLink>
		<br />
		&lt;mw:OnClickModAlertExtender TargetControlID="hplTest" runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made. Do you want to continue?" />
		
	</p>
	
	<p>
		Change the value of this text box, and
		<br />
		click the button to test this ModAlert control.
		<br />
		<asp:TextBox ID="txtTest" runat="server" />
		<mw:TextBoxModWatcherExtender TargetControlID="txtTest" runat="server" />

		<br /><br />

		<asp:Button Text="Fire ModAlert Button" ID="btnTest" runat="server" />
		<mw:OnClickModAlertExtender TargetControlID="btnTest" runat="server"
			NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br />

		<asp:LinkButton Text="Fire ModAlert LinkButton" ID="lnkTest" runat="server" />
		<mw:OnClickModAlertExtender TargetControlID="lnkTest" runat="server"
			NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br />

		<asp:HyperLink NavigateUrl="OnClickModAlert.aspx" ID="hplTest" runat="server">Fire ModAlert HyperLink</asp:HyperLink>
		<mw:OnClickModAlertExtender TargetControlID="hplTest" runat="server"
			NotifyModMessage="Changes have been made. Do you want to continue?" />
		
		<br /><br />

		<asp:Button Text="Save Changes" OnClick="btnSave_Click" ID="btnSave" runat="server" />

		<br /><br />
		
		Page last served: <asp:Label ID="lblLastServed" runat="server"></asp:Label>
		<br />
		Change detected on server? <asp:Label ID="lblServerChange" runat="server"></asp:Label>
	</p>

</asp:Content>
